package com.neuedu.boot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.devtools.restart.RestartScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 金山
 * 项目：boot-learn
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2025/3/2016:06
 */
@RestController
@ConfigurationProperties(prefix = "test")
public class PrefixController {


    // @Value("${test.abc}")
    private String abc;    // test.abc

    public void setAbc(String abc) {
        this.abc = abc;
    }

    @RequestMapping("/getAbc")
    String getAbc(){

        return  abc;
    }

}
